package cn.ly.proxy.staticProxy;

import cn.ly.proxy.IPerson;

/**
 * 静态代理Demo
 */
public class Main {

    public static void main(String[] args) {
        IPerson p = new Student2();
        //将学生p传给代理对象
        Student2Proxy stuProxy = new Student2Proxy(p);
        //proxy对象代理交学费
        stuProxy.giveMoney();
    }
}
